package com.jsz.yun.ai.field.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author lami
 * 响应状态码枚举类，定义了常见的响应状态码和对应的消息
 */
@Getter
@AllArgsConstructor
public enum ResultCodeEnum implements AbstractResultCode{

    // 状态码和状态消息
    SUCCESS("0000", "请求成功"),
    INTERNAL_SERVER_ERROR("404", "服务器内部错误"),
    CREATE_USER_FAIL("000001", "创建用户失败，用户已经存在"),
    LOGIN_FAIL("000002", "登录失败，用户名或密码错误"),
    USER_PHONE_IS_NULL("000003", "手机号不能为空"),
    USER_PROMOTION_CODE_IS_ERROR("000004", "邀请码错误"),
    USER_IS_NULL("000005", "用户不存在"),
    TOKEN_IS_EXPIRED("000006", "token过期"),
    USER_DISK_SIZE_IS_NOT_ENOUGH("000007","用户空间不足");
    
    private  String code;
    
    private  String message;


    @Override
    public String getResultCode() {
        return code;
    }

    @Override
    public String getResultMsg() {
        return message;
    }
}